<div class="row m-n">
    <div class="crumbs-bar">
        <div yb-crumbs></div>
    </div>
    <div tabset type="tab">
        <div tab heading="区域调拨" active="activeFlag[0]" ng-click="changeTab(0)">
            <div class="row wrapper-y-sm">
                <div class="operate-bar col-xs-6 font-0">
                    <button class="btn btn-operate m-r-sm" ng-click="addApply()"
                        ng-disabled="!btnPermission.stockAllocationAdd"
                        translate translate-attr-title="{{!btnPermission.stockAllocationAdd?'无权限执行此操作':''}}">新增</button>
                    <button class="btn btn-operate m-r-sm" ng-click="synCRM('batch')"
                        ng-disabled="!btnPermission.stockAllocationCRM"
                        translate translate-attr-title="{{!btnPermission.stockAllocationCRM?'无权限执行此操作':''}}">同步CRM</button>
                    <button class="btn btn-operate m-r-sm" ng-click="go2AllocationPlan()" translate>参考创建</button>
                    <button class="btn btn-operate m-r-sm" ng-click="batchPrint()" ng-disabled="!btnPermission.stockAllocationPrint"
                        translate translate-attr-title="{{!btnPermission.stockAllocationPrint?'无权限执行此操作':''}}">批量打印</button>
                    <button class="btn btn-operate m-r-sm" ng-click="delHistory()">已删除</button>
                    <button class="btn btn-operate m-r-sm" ng-click="auditBillBatch()">批量审核</button>
                    <button class="btn btn-operate m-r-sm" ng-click="forWardAllotAdd()">前移库调拨申请创建</button>

                    <button class="btn btn-operate m-r-sm" ng-click="batchPosting()" translate>批量过账</button>
                    <button class="btn btn-operate m-r-sm" ng-click="batchReserve()" translate>批量创建预留</button>
                </div>
                <div class="search-bar wrapper-none col-xs-6">
                    <div class="btn-group m-l-xs pull-right">
                        <button type="button" class="btn btn-default base-color" ng-click="search()" translate translate-attr-title="刷新">
                            <i class="yb-icon ico-refresh"></i>
                        </button>
                        <button type="button" class="btn btn-default base-color" translate translate-attr-title="配置表格列"
                            ng-click="switchToolbar('ColConfig');">
                            <i class="yb-icon ico-set"></i>
                        </button>
                        <div class="btn btn-default base-color" ng-if="!!btnPermission.stockAllocationExport">
                            <div translate translate-attr-title="导出">
                                <i class="yb-icon ico-export-o"></i>
                            </div>
                            <ul class="more-tool">
                                <li yb-download download-url="exportParam.sectionUrl"
                                    download-param="exportParam.sectionParam" download-key="ids">
                                    <i class="yb-icon ico-export-o"></i> <span translate>导出</span>
                                </li>
                                <li yb-download download-url="exportParam.allUrl" download-param="condition"
                                    download-duration="3" download-duration="3">
                                    <i class="yb-icon ico-export-o"></i> <span translate>导出全部</span>
                                </li>
                            </ul>
                        </div>
                    </div>
                    <button class="btn-advance pull-right m-l-xs"
                        ng-click="switchToolbar('AdvanceSearch')"
                        translate-attr-title="高级搜索" translate="高级搜索more"></button>
                    <div class="input-group pull-right clearfix">
                        <input type="text" class="form-control txt-search"
                            translate translate-attr-placeholder="调拨单号"
                            ng-model="condition.allotOrder">
                        <span class="input-group-addon cursor-pointer" ng-click="search(1)" translate>搜索</span>
                    </div>
                </div>
            </div>
            <div yb-advance-search show-toolbar="toolbarConfig.showAdvanceSearch" search-data="search(1)"
                reset-data="reset()" date-picker="true" hide-date="switchDatePicker()">
                <div class="advance-search m-t-sm">
                    <div class="form-group clearfix">
                        <label class="control-label"><span translate>调拨单号</span>：</label>
                        <input type="text" name="allotOrder" ng-model="condition.allotOrder" class="form-control">
                    </div>
                    <div class="form-group clearfix" ng-if="$parent.isKJ">
                        <label class="control-label"><span translate>前移库调拨申请单号</span>：</label>
                        <input type="text"  name="kjForwardAllotNoLike" ng-model="condition.kjForwardAllotNoLike" placeholder="模糊搜索" class="form-control">
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label"><span translate>零件号</span>：</label>
                        <input type="text" name="materialsNo" ng-model="condition.materialsNo" class="form-control">
                    </div>
                    <div class="form-group clearfix" ng-if="btnPermission.stockAllocationEditTJ">
                        <label class="control-label"><span translate>区域调拨类型</span>：</label>
                        <select ng-model="condition.allotType" class="form-control"
                            ng-options="item.code as (item.name|translate) for item in allotTypeList">
                            <option value="" translate>请选择</option>
                        </select>
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label"><span translate>销售合同号</span>：</label>
                        <input type="text" name="crmOrder" ng-model="condition.crmOrder" class="form-control">
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label"><span translate>调度员</span>：</label>
                        <input type="text" name="dispatcherName" ng-model="condition.dispatcherName"
                            class="form-control">
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label"><span translate>制单人</span>：</label>
                        <input type="text" ng-model="condition.createName" class="form-control">
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label"><span translate>制单部门</span>：</label>
                        <input type="text" ng-model="condition.deptName" class="form-control">
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label"><span translate>服务单号</span>：</label>
                        <input type="text" name="serviceNo" class="form-control" ng-model="condition.serviceNo">
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label"><span translate>CRM单号</span>：</label>
                        <input type="text" name="crmOrder" class="form-control" ng-model="condition.crmOrder">
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label"><span translate>调出状态</span>：</label>
                        <select ng-model="condition.outState" class="form-control"
                            ng-options="item.code as (item.name|translate) for item in stateList">
                            <option value="" translate>请选择</option>
                        </select>
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label"><span translate>调入状态</span>：</label>
                        <select ng-model="condition.inState" class="form-control"
                            ng-options="item.code as (item.name|translate) for item in stateList">
                            <option value="" translate>请选择</option>
                        </select>
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label"><span translate>调出过账状态</span>：</label>
                        <select name="status" class="form-control" ng-model="condition.postOutStatus">
                            <option value="" translate>请选择</option>
                            <option value="0" translate>未过账</option>
                            <option value="1" translate>部分过账</option>
                            <option value="2" translate>已过账</option>
                        </select>
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label"><span translate>调入过账状态</span>：</label>
                        <select name="status" class="form-control" ng-model="condition.postInStatus">
                            <option value="" translate>请选择</option>
                            <option value="0" translate>未过账</option>
                            <option value="1" translate>部分过账</option>
                            <option value="2" translate>已过账</option>
                        </select>
                    </div>
                    <div class="form-group clearfix m-b-none">
                        <label class="control-label"><span translate>制单时间</span>：</label>
                        <input type="text" class="form-control date-picker" ng-model="condition.createDateStart"
                            datepicker-popup="{{'yyyy-MM-dd'}}" ng-click="switchDatePicker(0)"
                            ng-change="checkDate(condition, 'createDateStart', 'createDateEnd')"
                            is-open="datePickerFlag[0]" close-text="关闭" modal-size="small" readonly>
                    </div>
                    <div class="form-group clearfix m-b-none">
                        <label class="control-label"></label>
                        <label class="control-label wave-line">~</label>
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label"></label>
                        <input type="text" class="form-control date-picker" ng-model="condition.createDateEnd"
                            datepicker-popup="{{'yyyy-MM-dd'}}" ng-click="switchDatePicker(1)"
                            ng-change="checkDate(condition, 'createDateStart', 'createDateEnd')"
                            is-open="datePickerFlag[1]" close-text="关闭" modal-size="small" readonly>
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label"><span translate>调出仓库</span>：</label>
                        <input type="text" name="outLocation" class="form-control" ng-model="condition.outLocation">
                    </div>
                    <!-- <div class="form-group clearfix">
                        <label class="control-label"><span translate>调出仓库描述</span>：</label>
                        <input type="text" name="outLocation" class="form-control" ng-model="condition.outLocation">
                    </div> -->
                    <div class="form-group clearfix">
                        <label class="control-label"><span translate>调出库区</span>：</label>
                        <input type="text" name="outArea" class="form-control" ng-model="condition.outArea">
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label"><span translate>调入仓库</span>：</label>
                        <input type="text" name="inLocation" class="form-control" ng-model="condition.inLocation">
                    </div>
                    <!-- <div class="form-group clearfix">
                        <label class="control-label"><span translate>调入仓库描述</span>：</label>
                        <input type="text" name="inLocation" class="form-control" ng-model="condition.inLocation">
                    </div> -->
                    <div class="form-group clearfix">
                        <label class="control-label"><span translate>调入库区</span>：</label>
                        <input type="text" name="inArea" class="form-control" ng-model="condition.inArea">
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label"><span translate>备注</span>：</label>
                        <input type="text" class="form-control" ng-model="condition.remark">
                    </div>
                </div>
            </div>
            <div yb-col-config show-toolbar="toolbarConfig.showColConfig" ng-model="tableConfig" col-fixed="true"
                has-check-col="true" set-tb-style="setFixedWidth()"></div>
            <div class="main-area">
                <div yb-table-fixed class="table-fixed-wrap fix-left" ele-count="4" scroll-area="right">
                    <div class="th-fixed">
                        <table class="table-fixed border-none" width="{{tableConfig.fixedWidth}}">
                            <thead>
                                <tr>
                                    <th width="40" class="text-center th-check border-l-none">
                                        <div yb-check-box yb-checked="markInfo.allCheckedBill"
                                            yb-click="selectAll(dataList, 'Bill')"></div>
                                    </th>
                                    <th ng-repeat="itemCol in tableConfig.tableCol track by $index"
                                        width="{{itemCol.width}}" ng-click="toSort(tableConfig.tableCol, $index)"
                                        ng-show="!!itemCol.isShow && !!itemCol.isFixed">
                                        <div yb-thead-operate ng-model="itemCol" target-width="tableConfig.fixedWidth"
                                            fixed-width="tbStyle.billFixedWidth">
                                        </div>
                                    </th>
                                </tr>
                            </thead>
                        </table>
                    </div>
                    <div class="th-scroll-x" ng-style="tbStyle.billFixedWidth">
                        <table class="table-fixed border-none" width="{{tableConfig.scrollWidth}}">
                            <thead>
                                <tr>
                                    <th ng-repeat="itemCol in tableConfig.tableCol track by $index"
                                        width="{{itemCol.width}}" ng-click="toSort(tableConfig.tableCol, $index)"
                                        ng-show="!!itemCol.isShow && !itemCol.isFixed">
                                        <div yb-thead-operate ng-model="itemCol" target-width="tableConfig.scrollWidth">
                                        </div>
                                    </th>
                                </tr>
                            </thead>
                        </table>
                    </div>
                    <div class="td-scroll-y" ng-show="dataList.length > 0" ng-style="tbStyle.scrollLeftWidth">
                        <table class="table-fixed border-none">
                            <tbody>
                                <tr ng-repeat="item in dataList track by $index"
                                    ng-class="{'row-selected': $index === markInfo.curRow}"
                                    ng-click="selectRow($index)">
                                    <td width="40" class="text-center border-l-none" style="padding: 0 12px;">
                                        <div yb-check-box yb-checked="item.isChecked"
                                            yb-click="selectSingle(item, dataList, 'Bill')"></div>
                                    </td>
                                    <td class="spill-dots" ng-repeat="itemCol in tableConfig.tableCol track by $index"
                                        width="{{itemCol.width}}" ng-show="!!itemCol.isShow && !!itemCol.isFixed"
                                        title="{{item[itemCol.dataField]}}">
                                        <span
                                            ng-if="(!itemCol.clickFn && itemCol.type !== 'operate') || !!itemCol.clickFn && itemCol.type == 'synSap' && item[itemCol.dataField] != '同步失败'">{{item[itemCol.dataField]}}</span>
                                        <a class="btn-operate m-r-xs" ng-click="tdClick(item, itemCol.clickFn)"
                                            ng-if="(!!itemCol.clickFn && itemCol.type != 'synSap') || (!!itemCol.clickFn && itemCol.type == 'synSap' && item[itemCol.dataField] == '同步失败')">
                                            {{item[itemCol.dataField]}}
                                        </a>
                                        <div class="font-0" ng-if="itemCol.type === 'operate'">
                                            <button type="button" class="btn btn-operate m-r-xs"
                                                ng-click="printBill(item)" ng-if="btnPermission.stockAllocationPrint"
                                                translate translate-attr-title="{{!btnPermission.stockAllocationPrint?'无权限执行此操作':''}}">打印</button>
                                            <button type="button" class="btn btn-operate m-r-xs"
                                                ng-click="auditBill(item)" ng-if="btnPermission.stockAllocationAudit"
                                                ng-disabled="(item.billStatus!='1' && item.billStatus!='4' && item.billStatus!='7') || !btnPermission.stockAllocationAudit"
                                                translate translate-attr-title="{{!btnPermission.stockAllocationAudit?'无权限执行此操作':''}}">审核</button>
                                            <button type="button" class="btn btn-operate m-r-xs"
                                                ng-click="synCRM('single',item.id)"
                                                ng-if="btnPermission.stockAllocationCRM"
                                                ng-disabled="item.syncCrmFlag === '1'|| !btnPermission.stockAllocationCRM"
                                                translate translate-attr-title="{{!btnPermission.stockAllocationCRM?'无权限执行此操作':''}}">CRM同步</button>
                                            <button type="button" class="btn btn-operate m-r-xs" translate
                                                ng-click="editApply(item)"
                                                ng-if="!btnPermission.stockAllocationEditTJ&&btnPermission.stockAllocationEdit"
                                                ng-disabled="item.isSynSap === 1 || item.billStatus=='2'|| (item.outState != 0 && item.outState != 1) || !btnPermission.stockAllocationEdit || item.createId!==curUser.userId">编辑</button>
                                            <button type="button" class="btn btn-operate m-r-xs" translate
                                                ng-click="editApply(item)"
                                                ng-if="btnPermission.stockAllocationEditTJ"
                                                ng-disabled="item.isSynSap === 1 || item.billStatus=='2'|| (item.outState != 0 && item.outState != 1)">编辑</button>
                                                <!--edit by spd-->
                                            <button type="button" class="btn btn-operate m-r-xs"  ng-if="$parent.isKJ"
                                                ng-click="delApply(item.id)" ng-if="btnPermission.stockAllocationDel"
                                                ng-disabled="item.outState != 0 || !btnPermission.stockAllocationDel"
                                                translate translate-attr-title="{{!btnPermission.stockAllocationDel?'无权限执行此操作':''}}">删除</button>

                                                <button type="button" class="btn btn-operate m-r-xs" ng-if="!$parent.isKJ"
                                                ng-click="delApply(item.id)" ng-if="btnPermission.stockAllocationDel"
                                                ng-disabled="(item.outState != 0) || item.billStatus=='2'|| !btnPermission.stockAllocationDel"
                                                translate translate-attr-title="{{!btnPermission.stockAllocationDel?'无权限执行此操作':''}}">删除</button>
                                                <!--edit by spd end-->
                                            <!--edit by lqx-->
                                            <button type="button" class="btn btn-operate m-r-xs"
                                                ng-click="adjustBill(item)" ng-if="btnPermission.stockAllocationAdjust"
                                                ng-disabled="item.outState === 2 || item.inState >0 || item.outState === 4|| !btnPermission.stockAllocationAdjust"
                                                translate translate-attr-title="{{!btnPermission.stockAllocationAdjust?'无权限执行此操作':''}}">调整</button>
                                            <!--edit by lqx end-->
                                            <button class="btn btn-operate m-r-xs" ng-click="obligate(item)"
                                                ng-if="btnPermission.stockAllocationObligateAdd"
                                                ng-disabled="!!item.obligateDisabled || item.isSynSap === 1 || !btnPermission.stockAllocationObligateAdd"
                                                translate translate-attr-title="{{!btnPermission.stockAllocationObligateAdd?'无权限执行此操作':''}}">创建预留单</button>
                                            <button class="btn btn-operate m-r-xs" ng-click="posting(item, 1)"
                                                ng-if="btnPermission.stockAllocationObligatePosting"
                                                ng-disabled="!!item.postingOutDisabled  || item.postOutStatus ===2 || !btnPermission.stockAllocationObligatePosting"
                                                translate translate-attr-title="{{!btnPermission.stockAllocationObligatePosting?'无权限执行此操作':''}}">领出过账</button>
                                            <button class="btn btn-operate m-r-xs" ng-click="posting(item, 0)"
                                                ng-if="btnPermission.stockAllocationObligatePosting"
                                                ng-disabled="!!item.postingInDisabled  || !item.postOutStatus || item.postInStatus ===2 || !btnPermission.stockAllocationObligatePosting"
                                                translate translate-attr-title="{{!btnPermission.stockAllocationObligatePosting?'无权限执行此操作':''}}">领入过账</button>
                                            <!--edit by lqx-->
                                            <button class="btn btn-operate m-r-xs"
                                                ng-disabled="item.billStatus!='2' || item.outState === 2 || item.outState === 3|| item.outState === 4 || !btnPermission.stockAllocationOut"
                                                ng-if="curOrg.isBarcode == 0"
                                                translate translate-attr-title="{{!btnPermission.stockAllocationOut?'无权限执行此操作':''}}"
                                                ng-click="outbound(item)">出库</button>
                                            <button class="btn btn-operate m-r-xs"
                                                ng-disabled="item.billStatus!='2' || item.outState === 0 || item.outState === 1 || item.outState === 4|| item.inState === 2 ||item.inState === 3 ||!btnPermission.stockAllocationIn"
                                                ng-if="curOrg.isBarcode == 0"
                                                translate translate-attr-title="{{!btnPermission.stockAllocationIn?'无权限执行此操作':''}}"
                                                ng-click="inbound(item)">入库</button>
                                            <!--edit by lqx end-->
                                            <button class="btn btn-operate m-r-xs"
                                                ng-disabled="!btnPermission.stockAllocationFinishOut||!(item.billStatus=='2'&&(item.outState==0||item.outState==1)&&(item.inState==0||item.inState==1))"
                                                translate translate-attr-title="{{!btnPermission.stockAllocationFinishOut?'无权限执行此操作':''}}"
                                                ng-click="finishOut(item.allotOrder)">结单</button>
                                            <button class="btn btn-operate m-r-xs"
                                                ng-disabled="!btnPermission.stockAllocationAuditRevo || item.billStatus!='2'"
                                                translate translate-attr-title="{{!btnPermission.stockAllocationAuditRevo?'无权限执行此操作':''}}"
                                                ng-click="AuditRevo(item.id)">撤销审核</button>
                                            <button class="btn btn-operate m-r-xs" ng-click="importAttach4sch(item)" ng-if="isSCH">上传附件</button>
                                        </div>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                    <div class="td-scroll" ng-show="dataList.length > 0" ng-style="tbStyle.billFixedWidth">
                        <table class="table-fixed border-none" width="{{tableConfig.scrollWidth}}">
                            <tbody>
                                <tr ng-repeat="item in dataList track by $index"
                                    ng-class="{'row-selected': $index === markInfo.curRow}"
                                    ng-click="selectRow($index)">
                                    <td class="spill-dots" ng-repeat="itemCol in tableConfig.tableCol track by $index"
                                        width="{{itemCol.width}}" ng-show="!!itemCol.isShow && !itemCol.isFixed"
                                        title="{{item[itemCol.dataField]}}">
                                        <span
                                            ng-if="(!itemCol.clickFn && itemCol.type !== 'operate') || !!itemCol.clickFn && itemCol.type == 'synSap' && item[itemCol.dataField] != '同步失败'">{{item[itemCol.dataField]}}</span>
                                        <span
                                            ng-if="!!itemCol.clickFn && itemCol.type == 'synCRM' && item[itemCol.dataField] != '同步失败'">{{item[itemCol.dataField]}}</span>
                                        <a class="btn-operate m-r-xs" ng-click="tdClick(item, itemCol.clickFn)" ng-switch="itemCol.type"
                                            ng-if="(!!itemCol.clickFn && itemCol.type != 'synSap'&& itemCol.type != 'synCRM') || ((!!itemCol.clickFn && itemCol.type == 'synSap' || !!itemCol.clickFn && itemCol.type == 'synCRM') && item[itemCol.dataField] == '同步失败')">
                                            <span ng-switch-when="attach4sch" ng-if="!!item[itemCol.dataField]">
                                                查看附件
                                            </span>
                                            <span ng-switch-default>
                                                {{item[itemCol.dataField]}}
                                            </span>
                                        </a>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                    <div class="no-data w-full text-center p-t" ng-show="dataList.length === 0" translate>暂时没有数据</div>
                </div>
            </div>
            <div class="bottom-area page-bar wrapper-y-sm clearfix">
                <div yb-check-box class="m-t-xs m-r-sm" yb-checked="markInfo.allCheckedBill" yb-check-name="全选"
                    yb-click="selectAll(dataList, 'Bill')"></div>
                <div yb-page-info ng-model="pageInfo" yb-refresh="search()"></div>
            </div>
        </div>
        <div tab heading="详情" active="activeFlag[1]" ng-if="activeFlag[1]">
            <div class="m-t-sm form-up-tb clearfix">
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>调拨单号</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.headerInfo.allotOrder || '-'}}">
                        {{orderObj.headerInfo.allotOrder || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>区域调拨类型</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.headerInfo.allotTypeShow || '-'}}">
                        {{orderObj.headerInfo.allotTypeShow || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>销售合同号</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.headerInfo.crmOrder || '-'}}">
                        {{orderObj.headerInfo.crmOrder || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>调拨计划单号</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.headerInfo.allotPlanOrder || '-'}}">
                        {{orderObj.headerInfo.allotPlanOrder || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>制单人</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.headerInfo.createName || '-'}}">
                        {{orderObj.headerInfo.createName || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>制单部门</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.headerInfo.deptName || '-'}}">
                        {{orderObj.headerInfo.deptName || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>制单时间</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots"
                        title="{{orderObj.headerInfo.createDate|YbDate:'yyyy-MM-dd HH:mm:ss'}}">
                        {{orderObj.headerInfo.createDate|YbDate:'yyyy-MM-dd HH:mm:ss'}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>调出仓库</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.headerInfo.outLocation || '-'}}">
                        {{orderObj.headerInfo.outLocation || "-"}} &nbsp; {{orderObj.headerInfo.outWarehouseCodeDesc || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>调出库区</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.headerInfo.outArea || '-'}}">
                        {{orderObj.headerInfo.outArea || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>调入仓库</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.headerInfo.inLocation || '-'}}">
                        {{orderObj.headerInfo.inLocation || "-"}} &nbsp; {{orderObj.headerInfo.inWarehouseCodeDesc || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>调入库区</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.headerInfo.inArea || '-'}}">
                        {{orderObj.headerInfo.inArea || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100 spill-dots"><span translate>领出零件凭证</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.headerInfo.voucherOutNo || '-'}}">
                        {{orderObj.headerInfo.voucherOutNo || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100 spill-dots"><span translate>领出过账状态</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots">
                        {{orderObj.headerInfo.postOutStatus | ProgressStatus:"posting"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100 spill-dots"><span translate>领入零件凭证</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.headerInfo.voucherInNo || '-'}}">
                        {{orderObj.headerInfo.voucherInNo || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100 spill-dots"><span translate>领入过账状态</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots">
                        {{orderObj.headerInfo.postInStatus | ProgressStatus:"posting"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>移动类型</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.headerInfo.moveType || '-'}}">
                        {{orderObj.headerInfo.moveType || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>收货人</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.headerInfo.receiveUser || '-'}}">
                        {{orderObj.headerInfo.receiveUser || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>收货人联系方式</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.headerInfo.receiveTel || '-'}}">
                        {{orderObj.headerInfo.receiveTel || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>收货地址</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.headerInfo.receiveAddress || '-'}}">
                        {{orderObj.headerInfo.receiveAddress || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>单据状态</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.headerInfo.statusDesc || '-'}}">
                        {{orderObj.headerInfo.statusDesc || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>审核意见</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.headerInfo.auditMessage || '-'}}">
                        {{orderObj.headerInfo.auditMessage || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>审核人</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.headerInfo.AuditName || '-'}}">
                        {{orderObj.headerInfo.AuditName || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>服务单号</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.headerInfo.serviceNo || '-'}}">
                        {{orderObj.headerInfo.serviceNo || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>CRM单号</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.headerInfo.crmOrder || '-'}}">
                        {{orderObj.headerInfo.crmOrder || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm" ng-if="orderObj.headerInfo.forwardAllotNo">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>前移库调拨单号</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.headerInfo.forwardAllotNo || '-'}}">
                        {{orderObj.headerInfo.forwardAllotNo || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>备注</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.headerInfo.remark || '-'}}">
                        {{orderObj.headerInfo.remark || "-"}}
                    </div>
                </div>
            </div>
            <div class="row wrapper-y-xs">
                <div class="col-xs-12 operate-bar font-0">
                    <button class="btn btn-operate m-r-sm" ng-click="batchPrint4Details()"
                        ng-disabled="!btnPermission.stockAllocationPrint"
                        translate translate-attr-title="{{!btnPermission.stockAllocationPrint?'无权限执行此操作':''}}">批量打印</button>
                </div>
            </div>
            <div class="main-area d-b-60" ng-style="{top: isEN?'340px':'280px'}">
                <div yb-table-fixed class="table-fixed-wrap">
                    <div class="th-scroll-x">
                        <table class="table-fixed border-none" width="{{materielDetailConfig.scrollWidth}}">
                            <thead>
                                <tr>
                                    <th width="40" class="th-check text-center">
                                        <div yb-check-box yb-checked="markInfo.allCheckedMaterial"
                                            yb-click="selectAll(orderObj.detailList, 'Material')"></div>
                                    </th>
                                    <th width="190" class="border-l-none" translate>
                                        操作
                                    </th>
                                    <th ng-repeat="itemCol in materielDetailConfig.tableCol track by $index"
                                        width="{{itemCol.width}}">
                                        <div yb-thead-operate ng-model="itemCol"
                                            target-width="materielDetailConfig.targetWidth"></div>
                                    </th>
                                </tr>
                            </thead>
                        </table>
                    </div>
                    <div class="td-scroll" ng-show="orderObj.detailList.length > 0">
                        <table class="table-fixed border-none" width="{{materielDetailConfig.scrollWidth}}">
                            <tbody>
                                <tr ng-repeat="item in orderObj.detailList track by $index">
                                    <td width="40" class="text-center">
                                        <div yb-check-box yb-checked="item.isChecked"
                                            yb-click="selectSingle(item, orderObj.detailList, 'Material')"></div>
                                    </td>
                                    <td width="190" class="font-0">
                                        <button class="btn btn-operate m-r-xs"
                                            ng-click="printBill4Details(item)"
                                            ng-disabled="!btnPermission.stockAllocationPrint"
                                            translate translate-attr-title="{{!btnPermission.stockAllocationPrint?'无权限执行此操作':''}}">打印</button>
                                        <button class="btn btn-operate m-r-xs"
                                            ng-click="posting(item, 1, item.materialNo)"
                                            ng-disabled="item.outAmount <= item.postOutAmount || item.outState === 3 || !btnPermission.stockAllocationObligatePosting"
                                            translate translate-attr-title="{{!btnPermission.stockAllocationObligatePosting?'无权限执行此操作':''}}">调出过账</button>
                                        <button class="btn btn-operate m-r-xs"
                                            ng-click="posting(item, 0, item.materialNo)"
                                            ng-disabled="item.inAmount <= item.postInAmount || item.inState === 3 || !btnPermission.stockAllocationObligatePosting"
                                            translate translate-attr-title="{{!btnPermission.stockAllocationObligatePosting?'无权限执行此操作':''}}">调入过账</button>
                                        <button class="btn btn-operate"
                                            ng-click="deliveryRevoke(orderObj.headerInfo, item.materialsNo)"
                                            ng-disabled="item.outState == 0 || item.outState == 3 || !btnPermission.stockAllocationObligatePosting"
                                            translate translate-attr-title="{{!btnPermission.stockAllocationObligatePosting?'无权限执行此操作':''}}"
                                            ng-if="!item.voucherOutNo">撤回</button>
                                    </td>
                                    <td ng-repeat="itemCol in materielDetailConfig.tableCol track by $index" width="{{itemCol.width}}" class="spill-dots">
                                        {{item[itemCol.dataField]}}
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                    <div class="no-data w-full text-center p-t" ng-show="orderObj.detailList.length === 0" translate>暂时没有数据</div>
                </div>
            </div>
            <div class="bottom-area btn-bar text-center clearfix">
                <button type="button" class="btn btn-default" ng-click="cancel()" translate>返回</button>
            </div>
        </div>
        <div tab heading="新增" active="activeFlag[2]" ng-if="activeFlag[2]">
            <form name="orderForm" class="m-t-sm form-horizontal form-up-tb border-b clearfix" novalidate>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100"><span translate>制单部门</span>：</label>
                    <label class="col-xs-8 control-label p-l-n text-left spill-dots">
                        {{orderObj.headerInfo.deptName||'-'}}
                    </label>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100"><span translate>制单人</span>：</label>
                    <label class="col-xs-8 control-label p-l-n text-left spill-dots">
                        {{orderObj.headerInfo.createName}}
                    </label>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100"><span translate>制单日期</span>：</label>
                    <label class="col-xs-8 control-label p-l-n text-left spill-dots">
                        {{orderObj.headerInfo.createDate|YbDate}}
                    </label>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100"><i>*</i><span translate>调度员</span>：</label>
                    <div class="col-xs-8 wrapper-none">
                        <input type="text" name="dispatcherName" class="form-control light-bg"
                            ng-model="orderObj.headerInfo.dispatcherName" ng-click="searchDispatch()" required yb-focus
                            readonly translate translate-attr-placeholder="请选择">

                        <div class="msg-block"
                            ng-if="orderForm.dispatcherName.$dirty || (orderForm.dispatcherName.$invalid && submitted)">
                            <div class="error-msg"
                                ng-if="orderForm.dispatcherName.$error.required && !orderForm.dispatcherName.focused">
                                <div class="msg-triangle"></div>
                                <span translate>必填项，请填写</span>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100"><i>*</i><span translate>调出仓库</span>：</label>
                    <div class="col-xs-8 wrapper-none">

                        <div yb-form-clear ng-model="orderObj.headerInfo.outLocation"
                            select-obj="selectWarehouse('out')" clear-form="clearWarehouse('out')" tips-name="调出仓库"
                            form-require="true"></div>

                        <div class="msg-block" ng-if="!orderObj.headerInfo.outLocation && submitted">
                            <div class="error-msg">
                                <div class="msg-triangle"></div>
                                <span translate>请选择调出仓库</span>
                            </div>
                        </div>
                    </div>
                </div>
                <!--edit by lqx-->
                <div class="form-group col-xs-3 m-b-sm"  ng-if="isWJ">
                    <label class="col-xs-4 control-label max-w-100"><i>*</i><span translate>调出仓库描述</span>：</label>
                    <label class="col-xs-8 control-label p-l-n text-left spill-dots">
                        {{orderObj.headerInfo.outLocationDesc}}
                    </label>
                </div>
                <!--edit by lqx end-->
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100"><i ng-if="isZHJCH">*</i><span translate>调出库区</span>：</label>
                    <div class="col-xs-8 wrapper-none">
                        <div yb-form-clear ng-model="orderObj.headerInfo.outArea"
                            select-obj="selectArea('out', orderObj.headerInfo.inArea)" clear-form="clearArea('out')"
                            tips-name="调出库区" form-require="isZHJCH"></div>
                    </div>

                    <div class="msg-block" ng-if="isZHJCH && !orderObj.headerInfo.outArea && submitted">
                        <div class="error-msg">
                            <div class="msg-triangle"></div>
                            <span translate>请选择调出库区</span>
                        </div>
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100"><i>*</i><span translate>调入仓库</span>：</label>
                    <div class="col-xs-8 wrapper-none">
                        <div yb-form-clear ng-model="orderObj.headerInfo.inLocation" select-obj="selectWarehouse('in')"
                            clear-form="clearWarehouse('in')" tips-name="调入仓库" form-require="true"></div>

                        <div class="msg-block" ng-if="!orderObj.headerInfo.inLocation && submitted">
                            <div class="error-msg">
                                <div class="msg-triangle"></div>
                                <span translate>请选择调入仓库</span>
                            </div>
                        </div>
                    </div>
                </div>
                <!--edit by lqx-->
                <div class="form-group col-xs-3 m-b-sm"  ng-if="isWJ">
                    <label class="col-xs-4 control-label max-w-100"><i>*</i><span translate>调入仓库描述</span>：</label>
                    <label class="col-xs-8 control-label p-l-n text-left spill-dots">
                        {{orderObj.headerInfo.inLocationDesc}}
                    </label>
                </div>
                <!--edit by lqx end-->
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100"><i ng-if="isZHJCH">*</i><span translate>调入库区</span>：</label>
                    <div class="col-xs-8 wrapper-none">
                        <div yb-form-clear ng-model="orderObj.headerInfo.inArea"
                            select-obj="selectArea('in', orderObj.headerInfo.outArea)" clear-form="clearArea('in')"
                            tips-name="调入库区" form-require="isZHJCH"></div>
                    </div>

                    <div class="msg-block" ng-if="isZHJCH && !orderObj.headerInfo.inArea && submitted">
                        <div class="error-msg">
                            <div class="msg-triangle"></div>
                            <span translate>请选择调入库区</span>
                        </div>
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100"><i>*</i><span translate>区域调拨类型</span>：</label>
                    <div class="col-xs-8 wrapper-none">
                        <select name="allotType" class="form-control" ng-model="orderObj.headerInfo.allotType"
                            ng-options="item.code as (item.name|translate) for item in allotTypeList" required yb-focus>
                            <option value="" translate>请选择</option>
                        </select>
                        <div class="msg-block"
                            ng-show="orderForm.allotType.$dirty || (orderForm.allotType.$invalid && submitted)">
                            <div class="error-msg"
                                ng-if="orderForm.allotType.$error.required && !orderForm.allotType.focused">
                                <div class="msg-triangle"></div>
                                <span translate>必填项，请填写</span>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100"><i>*</i><span translate>移动类型</span>：</label>
                    <div class="col-xs-8 wrapper-none">
                        <input type="text" name="moveType" class="form-control" ng-model="orderObj.headerInfo.moveType"
                            ng-disabled="tabFlag.type == 2" required yb-focus maxlength="10">
                        <div class="msg-block"
                            ng-show="orderForm.moveType.$dirty || (orderForm.moveType.$invalid && submitted)">
                            <div class="error-msg"
                                ng-if="orderForm.moveType.$error.required && !orderForm.moveType.focused">
                                <div class="msg-triangle"></div>
                                <span translate>必填项，请填写</span>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100"><span translate>收货人</span>：</label>
                    <div class="col-xs-8 wrapper-none">
                        <input type="text" name="receiveUser" class="form-control"
                            ng-model="orderObj.headerInfo.receiveUser" maxlength="20">
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100"><span translate>收货人联系方式</span>：</label>
                    <div class="col-xs-8 wrapper-none">
                        <input type="text" name="receiveTel" yb-contact yb-focus class="form-control" maxlength="11"
                            ng-model="orderObj.headerInfo.receiveTel">
                        <div class="msg-block"
                            ng-show="orderForm.receiveTel.$dirty || (orderForm.receiveTel.$invalid && submitted)">
                            <div class="error-msg"
                                ng-show="orderForm.receiveTel.$error.contactInfo && !orderForm.receiveTel.focused">
                                <div class="msg-triangle"></div>
                                <span translate>联系方式格式错误</span>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100"><span translate>收货地址</span>：</label>
                    <div class="col-xs-8 wrapper-none">
                        <input type="text" name="receiveAddress" class="form-control" maxlength="50"
                            ng-model="orderObj.headerInfo.receiveAddress">
                    </div>
                </div>
            </form>
            <div class="row wrapper-y-xs">
                <div class="col-xs-12 operate-bar font-0">
                    <button class="btn btn-operate m-r-sm" ng-click="selMateriel($event)" translate>选择零件</button>
                    <button class="btn btn-operate m-r-sm" ng-click="importMateriel()" translate>导入零件</button>
                    <button class="btn btn-operate m-r-sm" ng-click="batchDelMateriel()" translate>批量删除</button>
                </div>
            </div>
            <div materiel-selector show-toolbar="toolbarConfig.showMateriel" is-default-warehouse="true"
                selected-list="orderObj.detailList"
                warehouse-code="orderObj.headerInfo.outLocation" area-code="orderObj.headerInfo.outArea"
                mark-stock-status="true"></div>
            <div class="main-area d-b-60" style="top:260px;">
                <div yb-table-fixed class="table-fixed-wrap">
                    <div class="th-scroll-x">
                        <table class="table-fixed border-none" width="{{materielTableConfig.scrollWidth}}">
                            <thead>
                                <tr>
                                    <th width="40" class="th-check text-center">
                                        <div yb-check-box yb-checked="markInfo.allCheckedMaterial"
                                            yb-click="selectAll(orderObj.detailList, 'Material')"></div>
                                    </th>
                                    <th width="60" class="text-center" translate>
                                        操作
                                    </th>
                                    <th ng-repeat="itemCol in materielTableConfig.tableCol track by $index"
                                        width="{{itemCol.width}}">
                                        <div yb-thead-operate ng-model="itemCol"
                                            target-width="materielTableConfig.targetWidth"></div>
                                    </th>
                                </tr>
                            </thead>
                        </table>
                    </div>
                    <div class="td-scroll" ng-show="orderObj.detailList.length > 0">
                        <table class="table-fixed border-none" width="{{materielTableConfig.scrollWidth}}">
                            <tbody>
                                <tr ng-repeat="item in orderObj.detailList track by $index">
                                    <td width="40" class="text-center">
                                        <div yb-check-box yb-checked="item.isChecked"
                                            yb-click="selectSingle(item, orderObj.detailList, 'Material')"></div>
                                    </td>
                                    <td width="60">
                                        <button type="button" class="btn btn-operate"
                                            ng-click="delMateriel(item, $index)" translate>删除</button>
                                    </td>
                                    <td ng-repeat="itemCol in materielTableConfig.tableCol track by $index"
                                        width="{{itemCol.width}}" title="{{item[itemCol.dataField]}}">
                                        <div class="spill-dots" ng-if="!itemCol.needInput">
                                            <a class="btn-operate m-r-xs" ng-click="tdClick(item, itemCol.clickFn)"
                                                ng-if="!!itemCol.clickFn">
                                                {{item[itemCol.dataField]}}
                                            </a>
                                            <span ng-if="!itemCol.clickFn">
                                                {{item[itemCol.dataField]}}
                                            </span>
                                        </div>
                                        <div class="td-edit pos-r" ng-if="itemCol.needInput">
                                            <input ng-if="!itemCol.needRequired" type="text" class="form-control"
                                                ng-model="item[itemCol.dataField]" maxlength="20">
                                            <input ng-if="itemCol.needRequired" type="text" class="form-control"
                                                ng-model="item[itemCol.dataField]" ng-focus="showQtyTip(item)"
                                                ng-blur="hideQtyTip(item)" ng-change="checkQtyForAdd(item)"
                                                yb-number-input max="99999.999" maxlength="9" disable-decimal="false"
                                                decimal-places="3" ng-class="{'error': item.qtyErr}">
                                            <div class="pos-a tool-tips"
                                                ng-if="!!item.qtyErr&&item.showStockErr&&itemCol.needRequired">
                                                <i class="triangle"></i>
                                                <div class="msg" translate>申请数量不能为空和0</div>
                                            </div>
                                        </div>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                    <div class="no-data w-full text-center p-t" ng-show="orderObj.detailList.length === 0" translate>暂时没有数据</div>
                </div>
            </div>
            <div class="bottom-area btn-bar text-center clearfix">
                <button type="button" class="btn btn-primary m-r-sm"
                    ng-click="saveData('save', orderForm.$valid)" translate>提交</button>
                <button type="button" class="btn btn-default" ng-click="cancel()" translate>取消</button>
            </div>
        </div>
        <div tab heading="编辑" active="activeFlag[3]" ng-if="activeFlag[3]">
            <form name="orderForm" class="m-t-sm form-horizontal form-up-tb border-b clearfix" novalidate>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100"><span translate>调拨单号</span>：</label>
                    <div class="col-xs-8 wrapper-xs" title="{{orderObj.headerInfo.allotOrder || '-'}}">
                        {{orderObj.headerInfo.allotOrder || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100"><span translate>区域调拨类型</span>：</label>
                    <div class="col-xs-8 wrapper-xs" title="{{orderObj.headerInfo.allotTypeShow || '-'}}">
                        {{orderObj.headerInfo.allotTypeShow || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100"><span translate>销售合同号</span>：</label>
                    <div class="col-xs-8 wrapper-xs" title="{{orderObj.headerInfo.crmOrder || '-'}}">
                        {{orderObj.headerInfo.crmOrder || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100"><span translate>制单人</span>：</label>
                    <div class="col-xs-8 wrapper-xs" title="{{orderObj.headerInfo.createName || '-'}}">
                        {{orderObj.headerInfo.createName || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100"><span translate>制单部门</span>：</label>
                    <div class="col-xs-8 wrapper-xs spill-dots" title="{{orderObj.headerInfo.deptName || '-'}}">
                        {{orderObj.headerInfo.deptName || "-"}}
                    </div>
                </div>

                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100"><span translate>制单时间</span>：</label>
                    <div class="col-xs-8 wrapper-xs spill-dots"
                        title="{{orderObj.headerInfo.createDate|YbDate:'yyyy-MM-dd HH:mm:ss'}}">
                        {{orderObj.headerInfo.createDate|YbDate:'yyyy-MM-dd HH:mm:ss'}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100"><span translate>调度员</span>：</label>
                    <div class="col-xs-8 wrapper-xs spill-dots" title="{{orderObj.headerInfo.dispatcherName || '-'}}">
                        {{orderObj.headerInfo.dispatcherName || "-"}}
                    </div>
                </div>

                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100"><i>*</i><span translate>调出仓库</span>：</label>
                    <div class="col-xs-8 wrapper-none">
                        <div yb-form-clear ng-model="orderObj.headerInfo.outLocation"
                            select-obj="selectWarehouse('out')" clear-form="clearWarehouse('out')" tips-name="调出仓库"
                            form-require="true"></div>
                        <div class="msg-block" ng-if="!orderObj.headerInfo.outLocation && submitted">
                            <div class="error-msg">
                                <div class="msg-triangle"></div>
                                <span translate>请选择调出仓库</span>
                            </div>
                        </div>
                    </div>
                </div>
                <!--edit by lqx-->
                <div class="form-group col-xs-3 m-b-sm" ng-if="isWJ">
                    <label class="col-xs-4 control-label max-w-100"><i>*</i><span translate>调出仓库描述</span>：</label>
                    <label class="col-xs-8 control-label p-l-n text-left spill-dots">
                        {{orderObj.headerInfo.outLocationDesc}}
                    </label>
                </div>
                <!--edit by lqx end-->
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100"><i ng-if="isZHJCH">*</i><span translate>调出库区</span>：</label>
                    <div class="col-xs-8 wrapper-none">
                        <div yb-form-clear ng-model="orderObj.headerInfo.outArea"
                            select-obj="selectArea('out', orderObj.headerInfo.inArea)" clear-form="clearArea('out')"
                            tips-name="调出库区" form-require="isZHJCH"></div>
                    </div>
                    <div class="msg-block" ng-if="isZHJCH && !orderObj.headerInfo.outArea && submitted">
                        <div class="error-msg">
                            <div class="msg-triangle"></div>
                            <span translate>请选择调出库区</span>
                        </div>
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100"><i>*</i><span translate>调入仓库</span>：</label>
                    <div class="col-xs-8 wrapper-none">
                        <div yb-form-clear ng-model="orderObj.headerInfo.inLocation" select-obj="selectWarehouse('in')"
                            clear-form="clearWarehouse('in')" tips-name="调入仓库" form-require="true"></div>

                        <div class="msg-block" ng-if="!orderObj.headerInfo.inLocation && submitted">
                            <div class="error-msg">
                                <div class="msg-triangle"></div>
                                <span translate>请选择调入仓库</span>
                            </div>
                        </div>
                    </div>
                </div>
                <!--edit by lqx-->
                <div class="form-group col-xs-3 m-b-sm" ng-if="isWJ">
                    <label class="col-xs-4 control-label max-w-100"><i>*</i><span translate>调入仓库描述</span>：</label>
                    <label class="col-xs-8 control-label p-l-n text-left spill-dots">
                        {{orderObj.headerInfo.inLocationDesc}}
                    </label>
                </div>
                <!--edit by lqx end-->
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100"><i ng-if="isZHJCH">*</i><span translate>调入库区</span>：</label>
                    <div class="col-xs-8 wrapper-none">
                        <div yb-form-clear ng-model="orderObj.headerInfo.inArea"
                            select-obj="selectArea('in', orderObj.headerInfo.outArea)" clear-form="clearArea('in')"
                            tips-name="调入库区" form-require="isZHJCH"></div>
                    </div>

                    <div class="msg-block" ng-if="isZHJCH && !orderObj.headerInfo.inArea && submitted">
                        <div class="error-msg">
                            <div class="msg-triangle"></div>
                            <span translate>请选择调入库区</span>
                        </div>
                    </div>
                </div>

                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100"><span translate>移动类型</span>：</label>
                    <div class="col-xs-8 wrapper-xs spill-dots" title="{{orderObj.headerInfo.moveType || '-'}}">
                        {{orderObj.headerInfo.moveType || "-"}}
                    </div>
                </div>

                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100"><span translate>收货人</span>：</label>
                    <div class="col-xs-8 wrapper-none">
                        <input type="text" name="receiveUser" class="form-control"
                            ng-model="orderObj.headerInfo.receiveUser" maxlength="20">
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100"><span translate>收货人联系方式</span>：</label>
                    <div class="col-xs-8 wrapper-none">
                        <input type="text" name="receiveTel" yb-contact yb-focus class="form-control" maxlength="11"
                            ng-model="orderObj.headerInfo.receiveTel">
                        <div class="msg-block"
                            ng-show="orderForm.receiveTel.$dirty || (orderForm.receiveTel.$invalid && submitted)">
                            <div class="error-msg"
                                ng-show="orderForm.receiveTel.$error.contactInfo && !orderForm.receiveTel.focused">
                                <div class="msg-triangle"></div>
                                <span translate>联系方式格式错误</span>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100"><span translate>收货地址</span>：</label>
                    <div class="col-xs-8 wrapper-none">
                        <input type="text" name="receiveAddress" class="form-control" maxlength="50"
                            ng-model="orderObj.headerInfo.receiveAddress">
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100"><span translate>CRM单号</span>：</label>
                    <div class="col-xs-8 wrapper-xs spill-dots" title="{{orderObj.headerInfo.crmOrder || '-'}}">
                        {{orderObj.headerInfo.crmOrder || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm" ng-if="orderObj.headerInfo.forwardAllotNo">
                    <label class="col-xs-4 control-label max-w-100"><span translate>前移库调拨单号</span>：</label>
                    <div class="col-xs-8 wrapper-xs spill-dots" title="{{orderObj.headerInfo.forwardAllotNo || '-'}}">
                        {{orderObj.headerInfo.forwardAllotNo || "-"}}
                    </div>
                </div>
            </form>
            <div class="row wrapper-y-xs">
                <div class="col-xs-12 operate-bar font-0">
                    <button class="btn btn-operate m-r-sm" ng-click="selMateriel($event)" translate>选择零件</button>
                    <button class="btn btn-operate m-r-sm" ng-click="importMateriel()" translate>导入零件</button>
                    <button class="btn btn-operate m-r-sm" ng-click="batchDelMateriel()" translate>批量删除</button>
                </div>
            </div>
            <div materiel-selector show-toolbar="toolbarConfig.showMateriel" selected-list="orderObj.detailList"
                is-default-warehouse="true" warehouse-code="orderObj.headerInfo.outLocation"
                warehouse-code-other="orderObj.headerInfo.inLocation"
                area-code="orderObj.headerInfo.outArea"></div>
            <div class="main-area d-b-60" style="top:295px;">
                <div yb-table-fixed class="table-fixed-wrap">
                    <div class="th-scroll-x">
                        <table class="table-fixed border-none" width="{{materielTableConfig.scrollWidth}}">
                            <thead>
                                <tr>
                                    <th width="40" class="th-check text-center">
                                        <div yb-check-box yb-checked="markInfo.allCheckedMaterial"
                                            yb-click="selectAll(orderObj.detailList, 'Material')"></div>
                                    </th>
                                    <th width="60" class="text-center" translate>
                                        操作
                                    </th>
                                    <th ng-repeat="itemCol in materielTableConfig.tableCol track by $index"
                                        width="{{itemCol.width}}">
                                        <div yb-thead-operate ng-model="itemCol"
                                            target-width="materielTableConfig.targetWidth"></div>
                                    </th>
                                </tr>
                            </thead>
                        </table>
                    </div>
                    <div class="td-scroll" ng-show="orderObj.detailList.length > 0">
                        <table class="table-fixed border-none" width="{{materielTableConfig.scrollWidth}}">
                            <tbody>
                                <tr ng-repeat="item in orderObj.detailList track by $index">
                                    <td width="40" class="text-center">
                                        <div yb-check-box yb-checked="item.isChecked"
                                            yb-click="selectSingle(item, orderObj.detailList, 'Material')"></div>
                                    </td>
                                    <td width="60">
                                        <button type="button" class="btn btn-operate"
                                            ng-click="delMateriel(item, $index)"
                                            ng-disabled="!!item.outState && item.outState !== 0" translate>删除</button>
                                    </td>
                                    <td ng-repeat="itemCol in materielTableConfig.tableCol track by $index"
                                        width="{{itemCol.width}}" title="{{item[itemCol.dataField]}}">
                                        <div class="spill-dots" ng-if="!itemCol.needInput">
                                            <a class="btn-operate m-r-xs" ng-click="tdClick(item, itemCol.clickFn)"
                                                ng-if="!!itemCol.clickFn">
                                                {{item[itemCol.dataField]}}
                                            </a>
                                            <span ng-if="!itemCol.clickFn">
                                                {{item[itemCol.dataField]}}
                                            </span>
                                        </div>
                                        <div class="td-edit pos-r" ng-if="itemCol.needInput">
                                            <input ng-if="!itemCol.needRequired" type="text" class="form-control"
                                                ng-model="item[itemCol.dataField]" maxlength="20">
                                            <input ng-if="itemCol.needRequired" type="text" class="form-control"
                                                ng-model="item[itemCol.dataField]" ng-focus="showQtyTip(item)"
                                                ng-blur="hideQtyTip(item)" ng-change="checkQty(item)" yb-number-input
                                                max="99999.999" maxlength="9" disable-decimal="false" decimal-places="3"
                                                ng-class="{'error': item.qtyErr&&itemCol.needRequired, 'high-warning': item.qtyStockErr && (item.qtyStockErrLevel == 3)&&itemCol.needRequired,
                                                    'mid-warning': item.qtyStockErr  && (item.qtyStockErrLevel == 2)&&itemCol.needRequired, 'low-warning': item.qtyStockErr  && (item.qtyStockErrLevel == 1)&&itemCol.needRequired}">
                                            <div class="pos-a tool-tips" ng-if="!!item.qtyErr&&itemCol.needRequired">
                                                <i class="triangle"></i>
                                                <div class="msg" translate>申请数量不能为空和0</div>
                                            </div>
                                            <div class="pos-a tool-tips"
                                                ng-if="item.showStockErr&&itemCol.needRequired">
                                                <i class="triangle"></i>
                                                <div class="msg" translate>{{item.qtyErrMsg}}</div>
                                            </div>
                                        </div>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                    <div class="no-data w-full text-center p-t" ng-show="orderObj.detailList.length === 0" translate>暂时没有数据</div>
                </div>
            </div>
            <div class="bottom-area btn-bar text-center clearfix">
                <button type="button" class="btn btn-primary m-r-sm"
                    ng-click="saveData('save', orderForm.$valid)" translate>提交</button>
                <button type="button" class="btn btn-default" ng-click="cancel()" translate>取消</button>
            </div>
        </div>
        <div tab heading="审核" active="activeFlag[4]" ng-if="activeFlag[4]">
            <div class="m-t-sm form-up-tb clearfix">
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100 spill-dots"><span translate translate-attr-title="调拨单号">调拨单号</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.headerInfo.allotOrder || '-'}}">
                        {{orderObj.headerInfo.allotOrder || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100 spill-dots"><span translate translate-attr-title="制单人">制单人</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.headerInfo.createName || '-'}}">
                        {{orderObj.headerInfo.createName || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100 spill-dots"><span translate translate-attr-title="制单部门">制单部门</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.headerInfo.deptName || '-'}}">
                        {{orderObj.headerInfo.deptName || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100 spill-dots"><span translate translate-attr-title="制单时间">制单时间</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots"
                        title="{{orderObj.headerInfo.createDate|YbDate:'yyyy-MM-dd HH:mm:ss'}}">
                        {{orderObj.headerInfo.createDate|YbDate:'yyyy-MM-dd HH:mm:ss'}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100 spill-dots"><span translate translate-attr-title="调度员">调度员</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.headerInfo.dispatcherName || '-'}}">
                        {{orderObj.headerInfo.dispatcherName || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100 spill-dots"><span translate translate-attr-title="调出仓库">调出仓库</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.headerInfo.outLocation || '-'}}">
                        {{orderObj.headerInfo.outLocation || "-"}} &nbsp; {{orderObj.headerInfo.outWarehouseCodeDesc || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100 spill-dots"><span translate translate-attr-title="调出库区">调出库区</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.headerInfo.outArea || '-'}}">
                        {{orderObj.headerInfo.outArea || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100 spill-dots"><span translate translate-attr-title="调入仓库">调入仓库</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.headerInfo.inLocation || '-'}}">
                        {{orderObj.headerInfo.inLocation || "-"}} &nbsp; {{orderObj.headerInfo.inWarehouseCodeDesc || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100 spill-dots"><span translate translate-attr-title="调入库区">调入库区</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.headerInfo.inArea || '-'}}">
                        {{orderObj.headerInfo.inArea || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100 spill-dots"><span translate translate-attr-title="移动类型">移动类型</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.headerInfo.moveType || '-'}}">
                        {{orderObj.headerInfo.moveType || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100 spill-dots"><span translate translate-attr-title="收货人">收货人</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.headerInfo.receiveUser || '-'}}">
                        {{orderObj.headerInfo.receiveUser || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100 spill-dots"><span translate translate-attr-title="收货人联系方式">收货人联系方式</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.headerInfo.receiveTel || '-'}}">
                        {{orderObj.headerInfo.receiveTel || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100 spill-dots"><span translate translate-attr-title="收货地址">收货地址</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.headerInfo.receiveAddress || '-'}}">
                        {{orderObj.headerInfo.receiveAddress || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100 spill-dots"><span translate translate-attr-title="销售合同号">销售合同号</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.headerInfo.crmOrder || '-'}}">
                        {{orderObj.headerInfo.crmOrder || "-"}}
                    </div>
                </div>
            </div>
            <div class="panel-bar pos-a clearfix" style="left:0;right: 240px;">
                <div class="pull-left">
                    <i></i><span translate>零件信息</span>
                </div>
            </div>
            <div class="panel-bar pos-a clearfix" style="right: 0; width: 225px;">
                <div class="pull-left">
                    <i></i><span translate>审核意见</span>
                </div>
            </div>
            <div class="main-area d-b-60" style="top:210px; right: 240px;">
                <div yb-table-fixed class="table-fixed-wrap">
                    <div class="th-scroll-x">
                        <table class="table-fixed border-none" width="{{materielTableConfig.scrollWidth}}">
                            <thead>
                                <tr>
                                    <th ng-repeat="itemCol in materielTableConfig.tableCol track by $index"
                                        width="{{itemCol.width}}">
                                        <div yb-thead-operate ng-model="itemCol"
                                            target-width="editMaterielConfig.scrollWidth"></div>
                                    </th>
                                </tr>
                            </thead>
                        </table>
                    </div>
                    <div class="td-scroll" ng-show="orderObj.detailList.length > 0">
                        <table class="table-fixed border-none" width="{{materielTableConfig.scrollWidth}}">
                            <tbody>
                                <tr ng-repeat="item in orderObj.detailList track by $index">
                                    <td class="spill-dots"
                                        ng-repeat="itemCol in materielTableConfig.tableCol track by $index"
                                        width="{{itemCol.width}}" title="{{item[itemCol.dataField]}}">
                                        {{item[itemCol.dataField]}}
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                    <div class="no-data w-full text-center p-t" ng-show="orderObj.detailList.length === 0" translate>暂时没有数据</div>
                </div>
            </div>
            <div class="main-area d-b-60" style="top:210px; left: auto; width: 225px;">
                <div class="main-wrap p-b-lg over-flow-h">
                    <textarea yb-word-count max-size="100" name="note" class="form-control full"
                        ng-model="orderObj.headerInfo.auditMessage"
                        ng-class="{'error': !orderObj.headerInfo.auditMessage && submitted}"
                        translate translate-attr-placeholder="审核意见"></textarea>
                </div>
            </div>
            <div class="bottom-area btn-bar text-center clearfix">
                <button type="button" class="btn btn-primary m-r-sm" translate
                    ng-click="auditPurchase('pass', orderObj.headerInfo, orderObj.headerInfo.auditMessage)">通过
                </button>
                <button type="button" class="btn btn-primary m-r-sm" translate
                    ng-click="auditPurchase('refuse', orderObj.headerInfo, orderObj.headerInfo.auditMessage)">拒绝
                </button>
                <button type="button" class="btn btn-default" ng-click="cancel()" translate>取消</button>
            </div>
        </div>
        <div tab heading="调整" active="activeFlag[5]" ng-if="activeFlag[5]">
            <div class="m-t-sm form-up-tb clearfix">
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>调拨单号</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.headerInfo.allotOrder || '-'}}">
                        {{orderObj.headerInfo.allotOrder || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>制单人</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.headerInfo.createName || '-'}}">
                        {{orderObj.headerInfo.createName || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>制单部门</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.headerInfo.deptName || '-'}}">
                        {{orderObj.headerInfo.deptName || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>制单时间</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots"
                        title="{{orderObj.headerInfo.createDate|YbDate:'yyyy-MM-dd HH:mm:ss'}}">
                        {{orderObj.headerInfo.createDate|YbDate:'yyyy-MM-dd HH:mm:ss'}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>调度员</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.headerInfo.dispatcherName || '-'}}">
                        {{orderObj.headerInfo.dispatcherName || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>调出仓库</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.headerInfo.outLocation || '-'}}">
                        {{orderObj.headerInfo.outLocation || "-"}} &nbsp; {{orderObj.headerInfo.outWarehouseCodeDesc || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>调出库区</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.headerInfo.outArea || '-'}}">
                        {{orderObj.headerInfo.outArea || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>调入仓库</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.headerInfo.inLocation || '-'}}">
                        {{orderObj.headerInfo.inLocation || "-"}} &nbsp; {{orderObj.headerInfo.inWarehouseCodeDesc || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>调入库区</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.headerInfo.inArea || '-'}}">
                        {{orderObj.headerInfo.inArea || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>移动类型</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.headerInfo.moveType || '-'}}">
                        {{orderObj.headerInfo.moveType || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>收货人</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.headerInfo.receiveUser || '-'}}">
                        {{orderObj.headerInfo.receiveUser || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>收货人联系方式</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.headerInfo.receiveTel || '-'}}">
                        {{orderObj.headerInfo.receiveTel || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>收货地址</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.headerInfo.receiveAddress || '-'}}">
                        {{orderObj.headerInfo.receiveAddress || "-"}}
                    </div>
                </div>
            </div>
            <div class="row wrapper-y-xs">
                <div class="col-xs-12 operate-bar font-0">
                    <button class="btn btn-operate m-r-sm" ng-click="selMateriel($event)" ng-if="isWJ && !orderObj.headerInfo.sapOutOrder" translate>选择零件</button>
                    <button class="btn btn-operate m-r-sm" ng-click="batchDelMateriel()" translate>批量删除</button>
                </div>
            </div>
            <div materiel-selector show-toolbar="toolbarConfig.showMateriel" selected-list="orderObj.detailList"
                is-default-warehouse="true" warehouse-code="orderObj.headerInfo.outLocation"
                area-code="orderObj.headerInfo.outArea"></div>
            <div class="main-area d-b-60" ng-style="{top: isEN?'220px':'195px'}">
                <div yb-table-fixed class="table-fixed-wrap">
                    <div class="th-scroll-x">
                        <table class="table-fixed border-none" width="{{materielTableConfig.scrollWidth}}">
                            <thead>
                                <tr>
                                    <th width="40" class="th-check text-center">
                                        <div yb-check-box yb-checked="markInfo.allCheckedMaterial"
                                            yb-click="selectAll(orderObj.detailList, 'Material')"></div>
                                    </th>
                                    <th width="60" class="text-center" translate>
                                        操作
                                    </th>
                                    <th ng-repeat="itemCol in materielTableConfig.tableCol track by $index"
                                        width="{{itemCol.width}}">
                                        <div yb-thead-operate ng-model="itemCol"
                                            target-width="materielTableConfig.targetWidth"></div>
                                    </th>
                                </tr>
                            </thead>
                        </table>
                    </div>
                    <div class="td-scroll" ng-show="orderObj.detailList.length > 0">
                        <table class="table-fixed border-none" width="{{materielTableConfig.scrollWidth}}">
                            <tbody>
                                <tr ng-repeat="item in orderObj.detailList track by $index">
                                    <td width="40" class="text-center">
                                        <div yb-check-box yb-checked="item.isChecked"
                                            yb-click="selectSingle(item, orderObj.detailList, 'Material')"></div>
                                    </td>
                                    <td width="60">
                                        <button type="button" class="btn btn-operate"
                                            ng-click="delMateriel(item, $index)"
                                            ng-disabled="item.outState > 0 || item.outAmount > 0" translate>删除</button>
                                    </td>
                                    <td ng-repeat="itemCol in materielTableConfig.tableCol track by $index"
                                        width="{{itemCol.width}}" title="{{item[itemCol.dataField]}}">
                                        <div class="spill-dots" ng-if="!itemCol.needInput">
                                            <a class="btn-operate m-r-xs" ng-click="tdClick(item, itemCol.clickFn)"
                                                ng-if="!!itemCol.clickFn">
                                                {{item[itemCol.dataField]}}
                                            </a>
                                            <span ng-if="!itemCol.clickFn">
                                                {{item[itemCol.dataField]}}
                                            </span>
                                        </div>
                                        <div class="td-edit pos-r" ng-if="itemCol.needInput">
                                            <input ng-if="!itemCol.needRequired" type="text" class="form-control"
                                                ng-model="item[itemCol.dataField]" maxlength="20">
                                            <input ng-if="itemCol.needRequired" type="text" class="form-control"
                                                ng-model="item[itemCol.dataField]" ng-focus="showQtyTip(item)"
                                                ng-blur="hideQtyTip(item)" ng-change="checkQty(item)" yb-number-input
                                                max="99999.999" maxlength="9" disable-decimal="false" decimal-places="3"
                                                ng-class="{'error': (item.qtyErr || item.qtyAdjustErr || item.qtyAdjustErr2)&&itemCol.needRequired, 'high-warning': item.qtyStockErr && (item.qtyStockErrLevel == 3)&&itemCol.needRequired,
                                                    'mid-warning': item.qtyStockErr  && (item.qtyStockErrLevel == 2)&&itemCol.needRequired, 'low-warning': item.qtyStockErr  && (item.qtyStockErrLevel == 1)&&itemCol.needRequired}">
                                            <div class="pos-a tool-tips" ng-if="!!item.qtyErr&&itemCol.needRequired">
                                                <i class="triangle"></i>
                                                <div class="msg" translate>申请数量不能为空和0</div>
                                            </div>
                                            <div class="pos-a tool-tips"
                                                ng-if="!!item.qtyAdjustErr&&itemCol.needRequired">
                                                <i class="triangle"></i>
                                                <div class="msg" translate>调整数量不能大于原数量</div>
                                            </div>
                                            <div class="pos-a tool-tips"
                                                ng-if="!!item.qtyAdjustErr2&&itemCol.needRequired">
                                                <i class="triangle"></i>
                                                <div class="msg" translate>调整数量不能小于已出库数量</div>
                                            </div>
                                            <div class="pos-a tool-tips"
                                                ng-if="item.showStockErr&&itemCol.needRequired">
                                                <i class="triangle"></i>
                                                <div class="msg" translate>{{item.qtyErrMsg}}</div>
                                            </div>
                                        </div>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                    <div class="no-data w-full text-center p-t" ng-show="orderObj.detailList.length === 0" translate>暂时没有数据</div>
                </div>
            </div>
            <div class="bottom-area btn-bar text-center clearfix">
                <button type="button" class="btn btn-primary m-r-sm" ng-click="saveData('adjust', true)" translate>提交</button>
                <button type="button" class="btn btn-default" ng-click="cancel()" translate>取消</button>
            </div>
        </div>
        <div tab heading="入库" active="activeFlag[6]" ng-if="activeFlag[6]">
            <div class="m-t-sm form-up-tb clearfix">
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>调拨单号</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{detailInfo.headerInfo.allotOrder || '-'}}">
                        {{detailInfo.headerInfo.allotOrder || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>制单人</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{detailInfo.headerInfo.createName || '-'}}">
                        {{detailInfo.headerInfo.createName || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>制单部门</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{detailInfo.headerInfo.deptName || '-'}}">
                        {{detailInfo.headerInfo.deptName || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>制单时间</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots"
                        title="{{detailInfo.headerInfo.createDate|YbDate:'yyyy-MM-dd HH:mm:ss' || '-'}}">
                        {{detailInfo.headerInfo.createDate|YbDate:'yyyy-MM-dd HH:mm:ss' || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>调出仓库</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{detailInfo.headerInfo.outLocation|| '-'}}">
                        {{orderObj.headerInfo.outLocation || "-"}} &nbsp; {{orderObj.headerInfo.outWarehouseCodeDesc || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>调出库区</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{detailInfo.headerInfo.outArea|| '-'}}">
                        {{detailInfo.headerInfo.outArea || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>调入仓库</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{detailInfo.headerInfo.inLocation|| '-'}}">
                        {{orderObj.headerInfo.inLocation || "-"}} &nbsp; {{orderObj.headerInfo.inWarehouseCodeDesc || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>调入库区</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{detailInfo.headerInfo.inArea|| '-'}}">
                        {{detailInfo.headerInfo.inArea || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>领出零件凭证</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{detailInfo.headerInfo.voucherOutNo|| '-'}}">
                        {{detailInfo.headerInfo.voucherOutNo || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>领出过账状态</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots"
                        title="{{detailInfo.headerInfo.postOutStatus | ProgressStatus:'posting'}}">
                        {{detailInfo.headerInfo.postOutStatus | ProgressStatus:"posting"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>领入零件凭证</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{detailInfo.headerInfo.voucherInNo|| '-'}}">
                        {{detailInfo.headerInfo.voucherInNo || "-"}}
                    </div>
                </div>

                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>领入过账状态</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots"
                        title="{{detailInfo.headerInfo.postInStatus | ProgressStatus:'posting'}}">
                        {{detailInfo.headerInfo.postInStatus | ProgressStatus:"posting"}}
                    </div>
                </div>

                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>移动类型</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{detailInfo.headerInfo.moveType|| '-'}}">
                        {{detailInfo.headerInfo.moveType || "-"}}
                    </div>
                </div>

                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>收货人</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{detailInfo.headerInfo.receiveUser|| '-'}}">
                        {{detailInfo.headerInfo.receiveUser || "-"}}
                    </div>
                </div>

                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>收货人联系方式</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{detailInfo.headerInfo.receiveTel|| '-'}}">
                        {{detailInfo.headerInfo.receiveTel || "-"}}
                    </div>
                </div>

                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>收货地址</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots"
                        title="{{detailInfo.headerInfo.receiveAddress|| '-'}}">
                        {{detailInfo.headerInfo.receiveAddress || "-"}}
                    </div>
                </div>

                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>单据状态</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{detailInfo.headerInfo.statusDesc|| '-'}}">
                        {{detailInfo.headerInfo.statusDesc || "-"}}
                    </div>
                </div>

                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>审核意见</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{detailInfo.headerInfo.auditMessage|| '-'}}">
                        {{detailInfo.headerInfo.auditMessage || "-"}}
                    </div>
                </div>
            </div>
            <div class="panel-bar clearfix">
                <div class="pull-left">
                    <i></i><span translate>零件信息</span>
                </div>
            </div>
            <div class="main-area d-b-60" ng-style="{top: isEN?'260px':'235px'}">
                <div yb-table-fixed class="table-fixed-wrap">
                    <div class="th-scroll-x">
                        <table class="table-fixed border-none" width="{{inTbConf.scrollWidth}}">
                            <thead>
                                <tr>
                                    <th ng-repeat="itemCol in inTbConf.tableCol track by $index"
                                        width="{{itemCol.width}}">
                                        <div yb-thead-operate ng-model="itemCol" target-width="inTbConf.scrollWidth">
                                        </div>
                                    </th>
                                </tr>
                            </thead>
                        </table>
                    </div>
                    <div class="td-scroll" ng-show="detailInfo.detailList.length > 0">
                        <table class="table-fixed border-none" width="{{inTbConf.scrollWidth}}">
                            <tbody>
                                <tr ng-repeat="item in detailInfo.detailList track by $index">
                                    <td ng-repeat="itemCol in inTbConf.tableCol track by $index"
                                        width="{{itemCol.width}}"
                                        ng-class="{'wrapper-none': itemCol.inputType === 'func'}">
                                        <div class="spill-dots"
                                            ng-if="!itemCol.input || item.status === 2 || item.status == 3"
                                            title="{{item[itemCol.dataField]}}">
                                            {{item[itemCol.dataField]}}
                                        </div>
                                        <div ng-if="!!itemCol.input && itemCol.inputType === 'func'"
                                            class="td-edit pos-r">
                                            <div yb-form-clear class="td-edit" ng-model="item[itemCol.dataField]"
                                                select-obj="selDepot(item)" clear-form="clearDepot(item)" tips-name="储位"
                                                title="{{item[itemCol.dataField]}}"
                                                ng-class="{'error': !!item.locationErr}"></div>
                                            <div class="pos-a tool-tips"
                                                ng-if="!!item.locationErr && !item.locationCode">
                                                <i class="triangle"></i>
                                                <div class="msg" translate>请选择储位</div>
                                            </div>
                                        </div>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                    <div class="no-data w-full text-center p-t" ng-show="detailInfo.detailList.length === 0" translate>暂时没有数据
                    </div>
                </div>
            </div>
            <div class="bottom-area btn-bar text-center clearfix">
                <button type="button" class="btn btn-primary m-r-sm" ng-click="inboundSubmit()" translate>确认入库</button>
                <button type="button" class="btn btn-default" ng-click="cancel()" translate>取消</button>
            </div>
        </div>
        <div tab heading="出库" active="activeFlag[7]" ng-if="activeFlag[7]">
            <div class="m-t-sm form-up-tb clearfix">
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>调拨单号</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{detailInfo.headerInfo.allotOrder || '-'}}">
                        {{detailInfo.headerInfo.allotOrder || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>制单人</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{detailInfo.headerInfo.createName || '-'}}">
                        {{detailInfo.headerInfo.createName || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>制单部门</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{detailInfo.headerInfo.deptName || '-'}}">
                        {{detailInfo.headerInfo.deptName || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>制单时间</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots"
                        title="{{detailInfo.headerInfo.createDate|YbDate:'yyyy-MM-dd HH:mm:ss' || '-'}}">
                        {{detailInfo.headerInfo.createDate|YbDate:'yyyy-MM-dd HH:mm:ss' || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>调出仓库</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{detailInfo.headerInfo.outLocation|| '-'}}">
                        {{orderObj.headerInfo.outLocation || "-"}} &nbsp; {{orderObj.headerInfo.outWarehouseCodeDesc || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>调出库区</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{detailInfo.headerInfo.outArea|| '-'}}">
                        {{detailInfo.headerInfo.outArea || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>调入仓库</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{detailInfo.headerInfo.inLocation|| '-'}}">
                        {{orderObj.headerInfo.inLocation || "-"}} &nbsp; {{orderObj.headerInfo.inWarehouseCodeDesc || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>调入库区</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{detailInfo.headerInfo.inArea|| '-'}}">
                        {{detailInfo.headerInfo.inArea || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>领出零件凭证</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{detailInfo.headerInfo.voucherOutNo|| '-'}}">
                        {{detailInfo.headerInfo.voucherOutNo || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>领出过账状态</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots"
                        title="{{detailInfo.headerInfo.postOutStatus | ProgressStatus:'posting'}}">
                        {{detailInfo.headerInfo.postOutStatus | ProgressStatus:"posting"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>领入零件凭证</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{detailInfo.headerInfo.voucherInNo|| '-'}}">
                        {{detailInfo.headerInfo.voucherInNo || "-"}}
                    </div>
                </div>

                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>领入过账状态</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots"
                        title="{{detailInfo.headerInfo.postInStatus | ProgressStatus:'posting'}}">
                        {{detailInfo.headerInfo.postInStatus | ProgressStatus:"posting"}}
                    </div>
                </div>

                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>移动类型</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{detailInfo.headerInfo.moveType|| '-'}}">
                        {{detailInfo.headerInfo.moveType || "-"}}
                    </div>
                </div>

                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>收货人</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{detailInfo.headerInfo.receiveUser|| '-'}}">
                        {{detailInfo.headerInfo.receiveUser || "-"}}
                    </div>
                </div>

                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>收货人联系方式</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{detailInfo.headerInfo.receiveTel|| '-'}}">
                        {{detailInfo.headerInfo.receiveTel || "-"}}
                    </div>
                </div>

                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>收货地址</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots"
                        title="{{detailInfo.headerInfo.receiveAddress|| '-'}}">
                        {{detailInfo.headerInfo.receiveAddress || "-"}}
                    </div>
                </div>

                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>单据状态</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{detailInfo.headerInfo.statusDesc|| '-'}}">
                        {{detailInfo.headerInfo.statusDesc || "-"}}
                    </div>
                </div>

                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>审核意见</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{detailInfo.headerInfo.auditMessage|| '-'}}">
                        {{detailInfo.headerInfo.auditMessage || "-"}}
                    </div>
                </div>
            </div>
            <div class="panel-bar clearfix">
                <div class="pull-left">
                    <i></i><span translate>零件信息</span>
                </div>
            </div>
            <div class="main-area d-b-60" ng-style="{top: isEN?'260px':'235px'}">
                <div yb-table-fixed class="table-fixed-wrap">
                    <div class="th-scroll-x">
                        <table class="table-fixed border-none" width="{{inTbConf.scrollWidth}}">
                            <thead>
                                <tr>
                                    <th ng-repeat="itemCol in inTbConf.tableCol track by $index"
                                        width="{{itemCol.width}}">
                                        <div yb-thead-operate ng-model="itemCol" target-width="inTbConf.scrollWidth">
                                        </div>
                                    </th>
                                </tr>
                            </thead>
                        </table>
                    </div>
                    <div class="td-scroll" ng-show="detailInfo.detailList.length > 0">
                        <table class="table-fixed border-none" width="{{inTbConf.scrollWidth}}">
                            <tbody>
                                <tr ng-repeat="item in detailInfo.detailList track by $index">
                                    <td ng-repeat="itemCol in inTbConf.tableCol track by $index"
                                        width="{{itemCol.width}}"
                                        ng-class="{'wrapper-none': itemCol.inputType === 'func'}">
                                        <div class="spill-dots"
                                            ng-if="!itemCol.input || item.status === 2 || item.status == 3"
                                            title="{{item[itemCol.dataField]}}">
                                            {{item[itemCol.dataField]}}
                                        </div>
                                        <div ng-if="!!itemCol.input && itemCol.inputType === 'func'"
                                            class="td-edit pos-r">
                                            <div yb-form-clear class="td-edit" ng-model="item[itemCol.dataField]"
                                                select-obj="selDepot(item)" clear-form="clearDepot(item)" tips-name="储位"
                                                title="{{item[itemCol.dataField]}}"
                                                ng-class="{'error': !!item.locationErr}"></div>
                                            <div class="pos-a tool-tips"
                                                ng-if="!!item.locationErr && !item.locationCode">
                                                <i class="triangle"></i>
                                                <div class="msg" translate>请选择储位</div>
                                            </div>
                                        </div>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                    <div class="no-data w-full text-center p-t" ng-show="detailInfo.detailList.length === 0" translate>暂时没有数据
                    </div>
                </div>
            </div>
            <div class="bottom-area btn-bar text-center clearfix">
                <button type="button" class="btn btn-primary m-r-sm" ng-click="outboundSubmit()" translate>确认出库</button>
                <button type="button" class="btn btn-default" ng-click="cancel()" translate>取消</button>
            </div>
        </div>
        <div tab heading="已删除记录" active="activeFlag[8]" ng-if="activeFlag[8]">
            <div class="main-area"  style="top:35px">
                    <div yb-table-fixed class="table-fixed-wrap fix-left" ele-count="4" scroll-area="right">
                        <div class="th-fixed">
                            <table class="table-fixed border-none" >
                                <thead>
                                    <tr>
                                        <th ng-repeat="itemCol in tbConfDel.tableCol track by $index" width="{{itemCol.width}}"
                                            ng-show="!!itemCol.isShow && !!itemCol.isFixed">
                                            <div yb-thead-operate ng-model="itemCol" target-width="tbConfDel.fixedWidth"
                                                ></div>
                                        </th>
                                    </tr>
                                </thead>
                            </table>
                        </div>
                        <div class="th-scroll-x" >
                            <table class="table-fixed border-none" width="{{tbConfDel.scrollWidth}}">
                                <thead>
                                    <tr>
                                        <th ng-repeat="itemCol in tbConfDel.tableCol track by $index" width="{{itemCol.width}}"
                                            ng-show="!!itemCol.isShow && !itemCol.isFixed">
                                            <div yb-thead-operate ng-model="itemCol" target-width="tbConfDel.scrollWidth">
                                            </div>
                                        </th>
                                    </tr>
                                </thead>
                            </table>
                        </div>
                        <div class="td-scroll-y">
                            <table class="table-fixed border-none" >
                                <tbody>
                                    <tr ng-repeat="item in dataDelList track by $index" ng-click="selectRow($index)"
                                        ng-class="{'row-selected': $index === markInfo.curRow}">

                                        <td class="spill-dots" ng-repeat="itemCol in tbConfDel.tableCol track by $index"
                                            width="{{itemCol.width}}" ng-show="!!itemCol.isShow && !!itemCol.isFixed"
                                            title="{{item[itemCol.dataField]}}">
                                            <span
                                                ng-if="(!itemCol.clickFn && itemCol.type !== 'operate') || !!itemCol.clickFn && itemCol.type == 'synSap' && item[itemCol.dataField] != '同步失败'">{{item[itemCol.dataField]}}</span>
                                            <a class="btn-operate m-r-xs" ng-click="tdClick(item, itemCol.clickFn)"
                                                ng-if="(!!itemCol.clickFn && itemCol.type != 'synSap') || (!!itemCol.clickFn && itemCol.type == 'synSap' && item[itemCol.dataField] == '同步失败')">
                                                {{item[itemCol.dataField]}}
                                            </a>
                                        </td>
                                    </tr>
                                </tbody>
                            </table>
                        </div>
                        <div class="td-scroll" ng-show="dataDelList.length > 0" >
                            <table class="table-fixed border-none" width="{{tbConfDel.scrollWidth}}">
                                <tbody>
                                    <tr ng-repeat="item in dataDelList track by $index" ng-click="selectRow($index)"
                                        ng-class="{'row-selected': $index === markInfo.curRow}">
                                        <td class="spill-dots" ng-repeat="itemCol in tbConfDel.tableCol track by $index"
                                            width="{{itemCol.width}}" ng-show="!!itemCol.isShow && !itemCol.isFixed"
                                            title="{{item[itemCol.dataField]}}">
                                            <span
                                                ng-if="(!itemCol.clickFn && itemCol.type !== 'operate') || !!itemCol.clickFn && itemCol.type == 'synSap' && item[itemCol.dataField] != '同步失败'">{{item[itemCol.dataField]}}</span>
                                            <a class="btn-operate m-r-xs" ng-click="tdClick(item, itemCol.clickFn, 'del')"
                                                ng-if="(!!itemCol.clickFn && itemCol.type != 'synSap') || (!!itemCol.clickFn && itemCol.type == 'synSap' && item[itemCol.dataField] == '同步失败')">
                                                {{item[itemCol.dataField]}}
                                            </a>
                                        </td>
                                    </tr>
                                </tbody>
                            </table>
                        </div>
                        <div class="no-data w-full text-center p-t" ng-show="dataDelList.length === 0">暂时没有数据</div>
                    </div>
            </div>
            <div class="bottom-area page-bar wrapper-y-sm clearfix">
               <div yb-page-info ng-model="pageInfoDel" yb-refresh="delHistory()"></div>
            </div>
        </div>
        <div tab heading="已删除详情" active="activeFlag[9]" ng-if="activeFlag[9]">
            <div class="m-t-sm form-up-tb clearfix">
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>调拨单号</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.headerInfo.allotOrder || '-'}}">
                        {{orderObj.headerInfo.allotOrder || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>区域调拨类型</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.headerInfo.allotTypeShow || '-'}}">
                        {{orderObj.headerInfo.allotTypeShow || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>销售合同号</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.headerInfo.crmOrder || '-'}}">
                        {{orderObj.headerInfo.crmOrder || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>调拨计划单号</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.headerInfo.allotPlanOrder || '-'}}">
                        {{orderObj.headerInfo.allotPlanOrder || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>制单人</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.headerInfo.createName || '-'}}">
                        {{orderObj.headerInfo.createName || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>制单部门</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.headerInfo.deptName || '-'}}">
                        {{orderObj.headerInfo.deptName || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>制单时间</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots"
                        title="{{orderObj.headerInfo.createDate|YbDate:'yyyy-MM-dd HH:mm:ss'}}">
                        {{orderObj.headerInfo.createDate|YbDate:'yyyy-MM-dd HH:mm:ss'}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>调出仓库</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.headerInfo.outLocation || '-'}}">
                        {{orderObj.headerInfo.outLocation || "-"}} &nbsp; {{orderObj.headerInfo.outWarehouseCodeDesc || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>调出库区</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.headerInfo.outArea || '-'}}">
                        {{orderObj.headerInfo.outArea || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>调入仓库</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.headerInfo.inLocation || '-'}}">
                        {{orderObj.headerInfo.inLocation || "-"}} &nbsp; {{orderObj.headerInfo.inWarehouseCodeDesc || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>调入库区</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.headerInfo.inArea || '-'}}">
                        {{orderObj.headerInfo.inArea || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100 spill-dots"><span translate>领出零件凭证</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.headerInfo.voucherOutNo || '-'}}">
                        {{orderObj.headerInfo.voucherOutNo || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100 spill-dots"><span translate>领出过账状态</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots">
                        {{orderObj.headerInfo.postOutStatus | ProgressStatus:"posting"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100 spill-dots"><span translate>领入零件凭证</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.headerInfo.voucherInNo || '-'}}">
                        {{orderObj.headerInfo.voucherInNo || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100 spill-dots"><span translate>领入过账状态</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots">
                        {{orderObj.headerInfo.postInStatus | ProgressStatus:"posting"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>移动类型</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.headerInfo.moveType || '-'}}">
                        {{orderObj.headerInfo.moveType || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>收货人</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.headerInfo.receiveUser || '-'}}">
                        {{orderObj.headerInfo.receiveUser || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>收货人联系方式</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.headerInfo.receiveTel || '-'}}">
                        {{orderObj.headerInfo.receiveTel || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>收货地址</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.headerInfo.receiveAddress || '-'}}">
                        {{orderObj.headerInfo.receiveAddress || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>单据状态</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.headerInfo.statusDesc || '-'}}">
                        {{orderObj.headerInfo.statusDesc || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>审核意见</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.headerInfo.auditMessage || '-'}}">
                        {{orderObj.headerInfo.auditMessage || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>服务单号</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.headerInfo.serviceNo || '-'}}">
                        {{orderObj.headerInfo.serviceNo || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>CRM单号</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.headerInfo.crmOrder || '-'}}">
                        {{orderObj.headerInfo.crmOrder || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm" ng-if="orderObj.headerInfo.forwardAllotNo">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>前移库调拨单号</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.headerInfo.forwardAllotNo || '-'}}">
                        {{orderObj.headerInfo.forwardAllotNo || "-"}}
                    </div>
                </div>
            </div>
            <div class="row wrapper-y-xs">
                <div class="col-xs-12 operate-bar font-0">
                    <button class="btn btn-operate m-r-sm" ng-click="batchPrint4Details()"
                        ng-disabled="!btnPermission.stockAllocationPrint"
                        translate translate-attr-title="{{!btnPermission.stockAllocationPrint?'无权限执行此操作':''}}">批量打印</button>
                </div>
            </div>
            <div class="main-area d-b-60" ng-style="{top: isEN?'310px':'250px'}">
                <div yb-table-fixed class="table-fixed-wrap">
                    <div class="th-scroll-x">
                        <table class="table-fixed border-none" width="{{materielDetailConfig.scrollWidth}}">
                            <thead>
                                <tr>
                                    <th ng-repeat="itemCol in materielDetailConfig.tableCol track by $index"
                                        width="{{itemCol.width}}">
                                        <div yb-thead-operate ng-model="itemCol"
                                            target-width="materielDetailConfig.targetWidth"></div>
                                    </th>
                                </tr>
                            </thead>
                        </table>
                    </div>
                    <div class="td-scroll" ng-show="orderObj.detailList.length > 0">
                        <table class="table-fixed border-none" width="{{materielDetailConfig.scrollWidth}}">
                            <tbody>
                                <tr ng-repeat="item in orderObj.detailList track by $index">
                                    <td ng-repeat="itemCol in materielDetailConfig.tableCol track by $index" width="{{itemCol.width}}" class="spill-dots">
                                        {{item[itemCol.dataField]}}
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                    <div class="no-data w-full text-center p-t" ng-show="orderObj.detailList.length === 0" translate>暂时没有数据</div>
                </div>
            </div>
            <div class="bottom-area btn-bar text-center clearfix">
                <button type="button" class="btn btn-default" ng-click="cancel()" translate>返回</button>
            </div>
        </div>
        <div tab heading="前移库调拨申请创建" active="activeFlag[10]" ng-if="activeFlag[10]">
            <div class="row wrapper-y-sm">
                <div class="operate-bar col-xs-4 font-0">
                </div>
                <div class="search-bar wrapper-none col-xs-8">
                    <div class="btn-group m-l-xs pull-right">
                        <button type="button" class="btn btn-default base-color" ng-click="search()" translate translate-attr-title="刷新">
                            <i class="yb-icon ico-refresh"></i>
                        </button>
                        <button type="button" class="btn btn-default base-color" translate translate-attr-title="配置表格列"
                            ng-click="switchToolbar('ForColConfig');">
                            <i class="yb-icon ico-set"></i>
                        </button>
                    </div>
                    <button class="btn-advance pull-right m-l-xs"
                        ng-click="switchToolbar('showFroWardSearch')"
                        translate-attr-title="高级搜索" translate="高级搜索more"></button>
                    <div class="input-group pull-right clearfix">
                    <input type="text" class="form-control txt-search"
                        translate translate-attr-placeholder="单据编号"
                        ng-model="conditionFor.billNo">
                        <span class="input-group-addon cursor-pointer" ng-click="searchFor(1)" translate>搜索</span>
                    </div>
                </div>
            </div>
                <div yb-advance-search show-toolbar="toolbarConfig.showshowFroWardSearch" search-data="searchFor(1)"
                    reset-data="resetFor()" date-picker="true" hide-date="switchDatePicker()">
                    <div class="advance-search m-t-sm">
                        <div class="form-group clearfix">
                            <label class="control-label"><span translate>单据编号</span>：</label>
                            <input type="text" name="billNo" ng-model="conditionFor.billNo" class="form-control">
                        </div>
                        <div class="form-group clearfix">
                            <label class="control-label"><span translate>单据编号</span>：</label>
                            <textarea ng-model="conditionFor.billNoList" class="form-control" placeholder="逗号分隔或者换行分隔">
                            </textarea>
                        </div>
                        <div class="form-group clearfix" ng-if="btnPermission.stockAllocationEditTJ">
                            <label class="control-label"><span translate>供货商名称</span>：</label>
                            <input type="text" name="supplierOrgName" ng-model="conditionFor.supplierOrgName" class="form-control">
                        </div>
                        <div class="form-group clearfix" ng-if="btnPermission.stockAllocationEditTJ">
                            <label class="control-label"><span translate>申请机构名称</span>：</label>
                            <input type="text" name="applyOrgName" ng-model="conditionFor.applyOrgName" class="form-control">
                        </div>
                        <!-- <div class="form-group clearfix">
                            <label class="control-label"><span translate>状态</span>：</label>
                            <select ng-model="conditionFor.status" class="form-control"
                            ng-options="item.code as (item.name|translate) for item in stateList">
                            <option value="" translate>请选择</option>
                        </select>
                        </div> -->
                        <div class="form-group clearfix">
                            <label class="control-label"><span translate>出库仓库编号</span>：</label>
                            <input type="text" name="outWarehouseCode" ng-model="conditionFor.outWarehouseCode"
                                class="form-control">
                        </div>
                        <div class="form-group clearfix">
                            <label class="control-label"><span translate>入库仓库编号</span>：</label>
                            <input type="text" ng-model="conditionFor.inWarehouseCode" class="form-control">
                        </div>

                        <div class="form-group clearfix m-b-none">
                            <label class="control-label"><span translate>制单时间</span>：</label>
                            <input type="text" class="form-control date-picker" ng-model="conditionFor.startCreateTime"
                                   datepicker-popup="{{'yyyy-MM-dd'}}" ng-click="showDatepickerBegin = !showDatepickerBegin"
                                   ng-change="checkDate(conditionFor, 'startCreateTime', 'endCreateTime')"
                                   is-open="showDatepickerBegin" close-text="关闭" modal-size="small" readonly>
                        </div>
                        <div class="form-group clearfix m-b-none">
                            <label class="control-label"></label>
                            <label class="control-label wave-line">~</label>
                        </div>
                        <div class="form-group clearfix">
                            <label class="control-label"></label>
                            <input type="text" class="form-control date-picker" ng-model="conditionFor.endCreateTime"
                                   datepicker-popup="{{'yyyy-MM-dd'}}" ng-click="showDatepickerEnd = !showDatepickerEnd"
                                   ng-change="checkDate(conditionFor, 'startCreateTime', 'endCreateTime')"
                                   is-open="showDatepickerEnd" close-text="关闭" modal-size="small" readonly>
                        </div>
                    </div>
                </div>
                <div yb-col-config show-toolbar="toolbarConfig.showForColConfig" ng-model="forWardTableConfig" col-fixed="true"
                     has-check-col="true"  set-tb-style="setFixedWidth()"></div>
                <div class="main-area">
                    <div yb-table-fixed class="table-fixed-wrap fix-left" ele-count="4" scroll-area="right">
                        <div class="th-fixed">
                            <table class="table-fixed border-none" width="{{forWardTableConfig.fixedWidth}}">
                                <thead>
                                    <tr>
                                        <th ng-repeat="itemCol in forWardTableConfig.tableCol track by $index"
                                            width="{{itemCol.width}}" ng-click="toSort(forWardTableConfig.tableCol, $index)"
                                            ng-show="!!itemCol.isShow && !!itemCol.isFixed">
                                            <div yb-thead-operate ng-model="itemCol" target-width="forWardTableConfig.fixedWidth"
                                                fixed-width="tbStyle.forWardBillFixedWidth"></div>
                                        </th>
                                    </tr>
                                </thead>
                            </table>
                        </div>
                        <div class="th-scroll-x" ng-style="tbStyle.forWardBillFixedWidth">
                            <table class="table-fixed border-none" width="{{forWardTableConfig.scrollWidth}}">
                                <thead>
                                    <tr>
                                        <th ng-repeat="itemCol in forWardTableConfig.tableCol track by $index"
                                            width="{{itemCol.width}}" ng-click="toSort(forWardTableConfig.tableCol, $index)"
                                            ng-show="!!itemCol.isShow && !itemCol.isFixed">
                                            <div yb-thead-operate ng-model="itemCol" target-width="forWardTableConfig.scrollWidth">
                                            </div>
                                        </th>
                                    </tr>
                                </thead>
                            </table>
                        </div>
                        <div class="td-scroll-y" ng-show="dataListFor.length > 0">
                            <table class="table-fixed border-none" width="{{forWardTableConfig.fixedWidth}}">
                                <tbody>
                                    <tr ng-repeat="item in dataListFor track by $index"
                                        ng-class="{'row-selected': $index === markInfo.curRow}"
                                        ng-click="selectRow($index)">
                                        <td class="spill-dots" ng-repeat="itemCol in forWardTableConfig.tableCol track by $index"
                                            width="{{itemCol.width}}" ng-show="!!itemCol.isShow && !!itemCol.isFixed">
                                            <div class="font-0" ng-if="itemCol.type === 'operate'">
                                                <button type="button" class="btn btn-operate m-r-xs"
                                                    ng-click="makeAllotOrder(item)">前移库调拨申请创建</button>
                                            </div>
                                        </td>
                                    </tr>
                                </tbody>
                            </table>
                        </div>
                        <div class="td-scroll" ng-show="dataListFor.length > 0" ng-style="tbStyle.forWardBillFixedWidth">
                            <table class="table-fixed border-none" width="{{forWardTableConfig.scrollWidth}}">
                                <tbody>
                                    <tr ng-repeat="item in dataListFor track by $index"
                                        ng-class="{'row-selected': $index === markInfo.curRow}"
                                        ng-click="selectRow($index)">
                                        <td class="spill-dots" ng-repeat="itemCol in forWardTableConfig.tableCol track by $index"
                                            width="{{itemCol.width}}" ng-show="!!itemCol.isShow && !itemCol.isFixed"
                                            title="{{item[itemCol.dataField]}}">
                                            <span>
                                                {{item[itemCol.dataField]}}
                                            </span>
                                        </td>
                                    </tr>
                                </tbody>
                            </table>
                        </div>
                        <div class="no-data w-full text-center p-t" ng-show="dataListFor.length === 0">暂时没有数据</div>
                    </div>
                </div>
                <div class="bottom-area page-bar wrapper-y-sm clearfix">
                    <div yb-page-info ng-model="pageInfoFor" yb-refresh="searchFor()"></div>
                </div>
        </div>
    </div>
</div>
